﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BI.IServices;

namespace BI.WebAPI.Controllers
{
    public class HomeController : Controller
    {
        private IAcountService _IAcountService { set; get; }

        public HomeController(IAcountService IAcountService)
        {
            _IAcountService = IAcountService;
        }

        public ActionResult Index()
        {
            var res = _IAcountService.Login("sa", "123456", "");
            ViewBag.res = res;
            return View();
        }
    }
}
